using SheLife.Domain.Entities;

namespace SheLife.Domain.Interfaces.Repositories
{
    /// <summary>
    /// 膳食营养仓储接口
    /// </summary>
    public interface IDietNutrientRepository : IRepository<DietNutrient>
    {
        Task<IEnumerable<DietNutrient>> GetByDietRecordIdAsync(Guid dietRecordId);
        Task<IEnumerable<DietNutrient>> GetByUserIdAndDateRangeAsync(Guid userId, DateTime startDate, DateTime endDate);
        Task<IEnumerable<DietNutrient>> GetByNutrientTypeAsync(Guid userId, string nutrientType);
        Task<Dictionary<string, double>> GetNutrientStatisticsByUserIdAsync(Guid userId, int days = 30);
    }
}